package org.yzh.web.service;

import org.yzh.web.model.entity.AlarmMessageDO;
import org.yzh.web.model.vo.AlarmCountTotal;
import org.yzh.web.model.vo.AlarmMessage;
import org.yzh.web.model.vo.AlarmMessageQuery;
import org.yzh.web.model.vo.DateTimeQuery;

import java.util.List;

/**
 * @author lsj
 * @date 2021/1/15 22:01
 */
public interface AlarmMessageService {
    /**
     * 查询报警消息
     * @param query
     * @return
     */
    List<AlarmMessage> find(AlarmMessageQuery query);

    /**
     * 查询该时间范围内的报警总数
     * @param query
     * @return
     */
    AlarmCountTotal findAlarmCountTotal(AlarmMessageQuery query);
}
